package com.shop.cereshop.app.dao.notice;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.cereshop.app.domain.notice.SystemNotice;
import com.shop.cereshop.app.domain.notice.SystemNoticeVO;
import com.shop.cereshop.app.page.recommend.RecommendCommentVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CereSystemNoticeMapper extends BaseMapper<SystemNotice> {
    /**
     * delete by primary key
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long id);

//    /**
//     * insert record to table
//     * @param record the record
//     * @return insert count
//     */
//    int insert(SystemNotices record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(SystemNotice record);

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    SystemNotice selectByPrimaryKey(Long id);


    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(SystemNotice record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(SystemNotice record);
}